import rules from '@/utils/rules'

export type PersonalDataForm = {
  id: number
  username: string
  password: string
  phone: string
  pic: string
  sex: string
}

export const PersonalDataRules = {
  username: [
    {
      pattern: rules.subscriber('chineseName'),
      message: '请输入2到16位汉字'
    }
  ],
  phone: [
    {
      pattern: rules.subscriber('phone'),
      message: '请输入正确的手机号'
    }
  ],
  sex: [
    {
      required: true,
      message: '请选择姓别'
    },
  ]
}
